package br.com.automed.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="CM_LAUDO")
public class Laudo {

	@Id
    @GeneratedValue(generator = "system-uuid", strategy=GenerationType.AUTO)
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name = "ID_LAUDO")
	private String idLaudo;
	
	@Column(name = "ST_LAUDO")
	private String laudo;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DT_LAUDO")
	private Date dataLaudo;
	
	@ManyToOne
	@JoinColumn(name="FK_PACIENTE",referencedColumnName="ID_PACIENTE")
	private Paciente paciente;
	
	@ManyToOne
	@JoinColumn(name="FK_MEDICO",referencedColumnName="ID_MEDICO")
	private Medico medico;

	public String getIdLaudo() {
		return idLaudo;
	}

	public void setIdLaudo(String idLaudo) {
		this.idLaudo = idLaudo;
	}

	public String getLaudo() {
		return laudo;
	}

	public void setLaudo(String laudo) {
		this.laudo = laudo;
	}

	public Date getDataLaudo() {
		return dataLaudo;
	}

	public void setDataLaudo(Date dataLaudo) {
		this.dataLaudo = dataLaudo;
	}

	public Paciente getPaciente() {
		return paciente;
	}

	public void setPaciente(Paciente paciente) {
		this.paciente = paciente;
	}

	public Medico getMedico() {
		return medico;
	}

	public void setMedico(Medico medico) {
		this.medico = medico;
	}
	
}
